/*  Copyright (C) 2012 Vladimir M. <mlvl.jr@gmail.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; by version 2 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */

import QtQuick 2.0

Item {
    width: 900
    height: 400

    property int spacing: width/15

    Clock {
        height: parent.height
        anchors.verticalCenter: parent.verticalCenter
        anchors.left: parent.left
        anchors.leftMargin: spacing
        width: (parent.width - spacing*3.0)/2

        backgroundImage.source: "clock.png"
        alarmIndicator.marginToRadiusRatio: 0.86

        timerMode: true
        timerAlarmMode: true
        timerAlarmMinutes: 2.0

        onAlarm: console.log("Alarm#1")
    }

    Clock {
        height: parent.height
        anchors.verticalCenter: parent.verticalCenter
        anchors.right: parent.right
        anchors.rightMargin: spacing
        width: (parent.width - spacing*3.0)/2

//        backgroundImage.source: "clock.png"
//        alarmIndicator.marginToRadiusRatio: 0.86
//        hourHandPxm.marginRatio: 0.4

//        timerMode: true
//        timerAlarmMode: true
//        timerAlarmMinutes: 2.0


        onAlarm: console.log("Alarm#2")
    }
}
